home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6599 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1010 b   |  27 lines

  1. Newsgroups: comp.lang.c
  2. Path: uu4news.netcom.com!friend!news
  3. From: rich@kastle.com (Richard Krehbiel)
  4. Subject: Re: sscanf bug??????
  5. Message-ID: <1996Feb15.122738.7811@friend.kastle.com>
  6. Sender: news@friend.kastle.com (News)
  7. Reply-To: rich@kastle.com
  8. Organization: Kastle Development Associates
  9. X-Newsreader: Forte Free Agent 1.0.82
  10. References: <4fimvo$82s@fnord.dfw.net> <4frr9j$ie8@fnord.dfw.net> <4ftdnq$b0c@sun001.spd.dsccc.com>
  11. Date: Thu, 15 Feb 1996 12:28:24 GMT
  12.  
  13. jmccarty@spd.dsccc.com (Mike McCarty) wrote:
  14.  
  15. >In any case, 013196 (octal) is 718 decimal. 718 decimal mod 256 is 206.
  16. >I don't see anything reasonable it could be the mod of that would
  17. >result in 89. So even if it is an "undocumented feature" or non-ANSI
  18. >extension, I don't think it is working properly.
  19.  
  20. 013196 is not valid octal; it's got a 9 in it.  :-)  The conversion
  21. probably stops at the 9, giving 131 octal = 89 decimal.
  22.  
  23. --
  24. Richard Krehbiel, Kastle Systems, Arlington VA USA
  25. rich@kastle.com (work) or richk@mnsinc.com (personal)
  26.  
  27.